using System.Collections;
using System.Collections.Generic;
using DefaultNamespace;
using UnityEngine;
using UnityEngine.UIElements;

public class Eat : MonoBehaviour
{
    [SerializeField] private PlayerManager PlayerManager;
    [SerializeField] private string name;
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (other.CompareTag("Player"))
        {
            PlayerManager.ChangeBuff(name);
            Destroy(gameObject);
        }
    }

}
